package com.lyk.coursearrange.entity.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lyk.coursearrange.entity.Installment;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CustomerInformationDto extends Model<CustomerInformationDto> {
    private static final long serialVersionUID=1L;

    /**
     * 客资id
     */
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Long customerId;

    /**
     * 微信号
     */
    @TableField("customer_wx")
    private String customerWx;

    /**
     * 客资来源
     */
    @TableField("customer_source")
    private Long customerSource;


    /**
     * 客资来源名称
     */
    @TableField("source_name")
    private String sourceName;


    /**
     * 来源负责人
     */
    @TableField("customer_sourcepeople")
    private Long customerSourcepeople;

    /**
     * 来源负责人名称
     */
    @TableField("sourcepeople_name")
    private String sourcepeopleName;

    /**
     * 客资截图
     */
    @TableField("customer_url")
    private String customerUrl;

    /**
     * 教师id
     */
    @TableField("customer_teacherid")
    private Long customerTeacherid;


    private String customerTeacherName;
    /**
     * 状态[1-未提交，2-已提交]
     */
    @TableField("type")
    private Integer type;

    /**
     * 学生姓名
     */
    @TableField("customer_student")
    private String customerStudent;

    /**
     * 客资状态 1.新课 2.未通过 3.已通过
     */
    @TableField("customer_state")
    private Long customerState;
    /**
     * 所属账号
     */
    @TableField("customer_account")
    private String customerAccount;
    /**
     * 截图类型：1微信号 2.微信二维码
     */
    @TableField("customer_type")
    private Long customerType;
    /**
     * 主动或者被动：1主动 2被动
     */
    @TableField("customer_isactive")
    private Long customerIsactive;
    /**
     * 微信二维码图片地址
     */
    @TableField("customer_ewm")
    private String customerEwm;


    @TableField("parent_phone_number")
    private String parentPhoneNumber;



    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
